﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;

namespace Logika
{
    [Serializable()]
    public class SobaXML
    {
        private string title;
        public string Title
        {
            get { return title; }
            set { title = value; }
        }

        private List<Point> fillPoints = new List<Point>();
        public List<Point> FillPoints
        {
            get { return fillPoints; }
            set { fillPoints = value; }
        }

        public static void Serialize(SobaXML sobaObj, String fileName) 
        {
            XmlSerializer SerializerObj = new XmlSerializer(typeof(SobaXML));

            TextWriter WriteFileStream = new StreamWriter (@"../../../" + fileName + ".xml");
            SerializerObj.Serialize(WriteFileStream, sobaObj);

            // Cleanup
            WriteFileStream.Close();
        }

        public static void Deserialize(ref SobaXML sobaObj, String fileName)
        {
            
        }
    }
}
